package com.essc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Order {
    private Integer oid;
    private Integer userId;
    private String username;
    private String buyerLocation;
    private String tel;
    private Integer goodId;
    private String gname;
    private Double price;
    private String pic;//商品照片
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;   //订单创建时间
    private Integer status;  //订单状态
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date apoTime;           //自提时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date sendTime;          //送货时间
    private Integer bySelf;
    private Integer bySend;
    private Integer sellerId;
    private String sellerName;
    private String sellerLocation;
    private String sellerTel;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBuyerLocation() {
        return buyerLocation;
    }

    public void setBuyerLocation(String buyerLocation) {
        this.buyerLocation = buyerLocation;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getApoTime() {
        return apoTime;
    }

    public void setApoTime(Date apoTime) {
        this.apoTime = apoTime;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getBySelf() {
        return bySelf;
    }

    public void setBySelf(Integer bySelf) {
        this.bySelf = bySelf;
    }

    public Integer getBySend() {
        return bySend;
    }

    public void setBySend(Integer bySend) {
        this.bySend = bySend;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getSellerLocation() {
        return sellerLocation;
    }

    public void setSellerLocation(String sellerLocation) {
        this.sellerLocation = sellerLocation;
    }

    public String getSellerTel() {
        return sellerTel;
    }

    public void setSellerTel(String sellerTel) {
        this.sellerTel = sellerTel;
    }

    @Override
    public String toString() {
        return "Order{" +
                "oid=" + oid +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", buyerLocation='" + buyerLocation + '\'' +
                ", tel='" + tel + '\'' +
                ", goodId=" + goodId +
                ", gname='" + gname + '\'' +
                ", price=" + price +
                ", pic='" + pic + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                ", apoTime=" + apoTime +
                ", sendTime=" + sendTime +
                ", bySelf=" + bySelf +
                ", bySend=" + bySend +
                ", sellerId=" + sellerId +
                ", sellerName='" + sellerName + '\'' +
                ", sellerLocation='" + sellerLocation + '\'' +
                ", sellerTel='" + sellerTel + '\'' +
                '}';
    }
}
